package com.allqj.sfx.ddd.member.infrastructure.dao;

import com.allqj.sfx.ddd.member.infrastructure.po.MemberAdminUserDO;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.Optional;

/**
 * @author sjw
 * @className AdminUserDAO
 * @date 2022/7/20 15:23
 * @description: 会员管理-管理员信息数据访问层
 */
public interface AdminUserDAO extends JpaRepository<MemberAdminUserDO, Integer>, JpaSpecificationExecutor<MemberAdminUserDO> {
    Optional<MemberAdminUserDO> findByPhoneAndIsdeleteFalse(String phone);
}
